﻿<!DOCTYPE html>
<html>
<head>
  <title>Parallel Layout</title>
  <!-- Copyright 1998-2021 by Northwoods Software Corporation. -->
  <meta name="description" content="TypeScript: A custom Layout that arranges a collection of nodes and links where there is a single 'split' node and a single 'merge' node, and all nodes are in paths of links that come from the 'split' node and go to the 'merge' node." />
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <script src="../samples/assets/require.js"></script>
  <script src="../assets/js/goSamples.js"></script> <!-- this is only for the GoJS Samples framework -->
  <script id="code">
    function init() {
      require(["ParallelScript"], function(app) {
        app.init();
      });
    }
  </script>
</head>
<body onload="init()">
  <div id="sample">
    <div id="myDiagramDiv" style="border: solid 1px black; background: white; width: 100%; height: 500px"></div>
    <p>
      This sample demonstrates a custom <a>TreeLayout</a>, ParallelLayout,
      which assumes that there is a single "Split" node that is the root of a tree,
      other than links that connect with a single "Merge" node.
      The layout is defined in its own file, as <a href="ParallelLayout.ts">ParallelLayout.ts</a>.
    </p>
    <p>
      Both the <a>Diagram.layout</a> and the <a>Group.layout</a> are instances of ParallelLayout,
      allowing for nested layouts that appear in parallel.
    </p>
  </div>
</body>
</html>